home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / gxcdevn.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  1.9 KB  |  52 lines

  1. /* Copyright (C) 1999 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19. /*$Id: gxcdevn.h,v 1.2 2000/09/19 19:00:34 lpd Exp $ */
  20. /* Internal definitions for DeviceN color spaces */
  21.  
  22. #ifndef gxcdevn_INCLUDED
  23. #  define gxcdevn_INCLUDED
  24.  
  25. #include "gsrefct.h"
  26. #include "gxcindex.h"
  27.  
  28. /* Cache for DeviceN color.  Note that currently this is a 1-entry cache. */
  29. #ifndef gs_device_n_map_DEFINED
  30. #  define gs_device_n_map_DEFINED
  31. typedef struct gs_device_n_map_s gs_device_n_map;
  32. #endif
  33. struct gs_device_n_map_s {
  34.     rc_header rc;
  35.     int (*tint_transform)(P5(const gs_device_n_params * params,
  36.                  const float *in, float *out,
  37.                  const gs_imager_state *pis, void *data));
  38.     void *tint_transform_data;
  39.     bool cache_valid;
  40.     float tint[GS_CLIENT_COLOR_MAX_COMPONENTS];
  41.     frac conc[GX_DEVICE_COLOR_MAX_COMPONENTS];
  42. };
  43. #define private_st_device_n_map() /* in gscdevn.c */\
  44.   gs_private_st_ptrs1(st_device_n_map, gs_device_n_map, "gs_device_n_map",\
  45.     device_n_map_enum_ptrs, device_n_map_reloc_ptrs, tint_transform_data)
  46.  
  47. /* Allocate and initialize a DeviceN map. */
  48. int alloc_device_n_map(P3(gs_device_n_map ** ppmap, gs_memory_t * mem,
  49.               client_name_t cname));
  50.  
  51. #endif /* gxcdevn_INCLUDED */
  52.